package com.jinsp.startup_library.sort;

import com.jinsp.startup_library.Startup;

import java.util.List;
import java.util.Map;

/**
 * Created by luoshuai on 2/25/22
 * <p>
 * 启动任务拓扑排序后的结束数据
 */
public class StartupTopologyResultBean {

    private final Map<Class<? extends Startup<?>>, List<Class<? extends Startup<?>>>> nextStartupMap;
    private final Map<Class<? extends Startup<?>>, Startup<?>> startupMap;
    private final List<Startup<?>> startupSortList;

    public StartupTopologyResultBean(Map<Class<? extends Startup<?>>, List<Class<? extends Startup<?>>>> nextStartupMap,
                                     Map<Class<? extends Startup<?>>, Startup<?>> startupMap,
                                     List<Startup<?>> startupSortList) {
        this.nextStartupMap = nextStartupMap;
        this.startupMap = startupMap;
        this.startupSortList = startupSortList;
    }

    public Map<Class<? extends Startup<?>>, List<Class<? extends Startup<?>>>> getNextStartupMap() {
        return nextStartupMap;
    }

    public Map<Class<? extends Startup<?>>, Startup<?>> getStartupMap() {
        return startupMap;
    }

    public List<Startup<?>> getStartupSortList() {
        return startupSortList;
    }
}
